package genetic;

import genetic.treenodes.Addition;
import genetic.treenodes.Constant;
import genetic.treenodes.Division;
import genetic.treenodes.Multiplication;
import genetic.treenodes.Subtraction;

import java.util.ArrayList;

public class T02_randomPopulation {

	public static void main(String[] args) {
		ArrayList<GPTreeNode> functionSet = new ArrayList<GPTreeNode>();
		ArrayList<GPTreeNode> terminalSet = new ArrayList<GPTreeNode>();
		
		functionSet.add(new Addition());
		functionSet.add(new Subtraction());
		functionSet.add(new Multiplication());
		functionSet.add(new Division());
		
		terminalSet.add(new Constant(11.11));
		terminalSet.add(new Constant(22.22));
		
		Population pop = new Population(functionSet, terminalSet, null);
		
		pop.createRandomPopulation(10, 5);
		pop.writeImagesFromCurrentPopulation("r1_");
	}

}
